//
//  EPColor.h
//  EPTool
//
//  Created by guoshiqing on 2018/4/13.
//  Copyright © 2018年 云数动能科技. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

// Ps：这里不包含Macro.h里面功能类似的宏，是为了以后迁移方便

// 十六进制颜色
#define EPCOLOR_HEX(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
// 十六进制颜色和透明度
#define EPCOLOR_HEXAndAlpha(rgbValue,alfa) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:alfa]
// 十进制颜色
#define EPCOLOR_RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]
// 十进制透明度
#define EPCOLOR_RGB(r,g,b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1.0]


@interface EPColor : NSObject

#define RGB_BLUE RGBA(64,127,255,1)

// 背景色
+ (UIColor *)epColor_Bg;
+ (UIColor *)epColor_Gray;
+ (UIColor *)epColor_UnderLine;
+ (UIColor *)epColor_LightGray;

// 文本色
+ (UIColor *)epColor_Nav;
+ (UIColor *)epColor_statusMessageGray;
+ (UIColor *)epColor_descMessageGray;
+ (UIColor *)epColor_BGGray;

// 主题色
+ (UIColor *)epColor_Blue;
+ (UIColor *)epColor_LineBlue;
+ (UIColor *)epColor_LightBlue;
+ (UIColor *)epColor_DeepBlue;

// 辅助色
+ (UIColor *)epColor_BGGreen;
+ (UIColor *)epColor_BGYellow;
+ (UIColor *)epColor_BGLightOrange;
+ (UIColor *)epColor_BGOrange;
+ (UIColor *)epColor_BGLightRed;
+ (UIColor *)epColor_BGRed;
+ (UIColor *)epColor_BGPink;

// 提示色
+ (UIColor *)epColor_TitleBlack;
+ (UIColor *)epColor_GreenText;
+ (UIColor *)epColor_YellowText;
+ (UIColor *)epColor_RedText;

+ (UIColor *)epColor_White;
+ (UIColor *)epColor_BGBlue;
+ (UIColor *)epColor_Violet;

// 十六进制值字符串到rgb
+ (UIColor *)colorWithHexString:(NSString *)hexString;
+ (UIColor *)colorWithHexString:(NSString *)hexString alpha:(CGFloat)alpha;


@end
